Skip to main content
  1. Posts/

Golang Dev on Vim

··1 min

Install #

git clone https://github.com/fatih/vim-go.git ~/.vim/pack/plugins/start/vim-go
go install github.com/fatih/vim-go-tutorial@latest

Configure #

vi ~/.vimrc
" Enable filetype plugins 
filetype plugin on

Test that it works #

cd $GOPATH/src
mkdir -p github.com/fatih
cd github.com/fatih
git clone https://github.com/fatih/vim-go-tutorial vim-go-tutorial
cd vim-go-tutorial
vi main.go
:GoInstallBinaries
:GoRun %

Refs #